<?php

class Chiphi extends Controller {

    public $base;
    public $css;

        function __construct()
        {
            parent::Controller();
            $this->base = $this->config->item('base_url');
            $this->css = $this->config->item('css');
            $this->load->helper('url');
        }



	function index()
	{
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';
            
            $this->load->view('header', $data);
            $this->load->view('home');
            $this->load->view('footer');
        }

        function about()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('about');
            $this->load->view('footer');
        }

        function brothers()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('brothers');
            $this->load->view('footer');
        }

        function alumni()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('alumni');
            $this->load->view('footer');
        }

        function rush()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('rush');
            $this->load->view('footer');
        }

        function parents()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('parents');
            $this->load->view('footer');
        }

        function photos()
        {

        /*
        // beginning of simple pie stuff

        $this->load->library('simplepie');
        $this->simplepie->set_feed_url('http://feeds.haughin.com/haughin');
        $this->simplepie->set_cache_location(APPPATH.'cache/rss');
        $this->simplepie->init();
        $this->simplepie->handle_content_type();

        $data['rss_items'] = $this->simplepie->get_items();



        //end of simple pie stuff
        // flickr library stuff

        $this->load->library('flickr');

        $config = array(
                'type'			=> 'user',
                'user'			=> '45188790@N03',
                'num_items'		=> 10,
                'rss_cache_path'	=> APPPATH.'cache/flickr-rss-cache',
                'cache_time'		=> 3600,
                'img_cache_path'	=> APPPATH.'cache/flickr-image-cache',
                'img_cache_url'		=> $this->config->item('base_url').'application/cache/flickr-image-cache',
                'use_cache'		=> false,
                'image_size'		=> 'square',
                'tags'			=> 'london'
                        );

        $this->flickr->init($config);

        $datap['photos'] = $this->flickr->get_photos();

        //end flickr stuff


        */

            // dont forget to add datap to the photos view

            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';
            $this->load->view('header', $data);
            $this->load->view('photos');
            $this->load->view('footer');





        }


}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */